.errorContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.errorCard {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.errorCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.errorDetails {
    margin-top: 24px;
    padding: 20px;
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.errorDetails:hover {
    background-color: #fff0eb;
    border-color: #ffa39e;
}

.errorDetails h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #cf1322;
    font-size: 16px;
    font-weight: 600;
}

.errorStack {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    overflow: auto;
    max-height: 300px;
    padding: 16px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.errorStack:hover {
    border-color: #d9d9d9;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.1);
}

.errorStack::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.errorStack::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.errorStack::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.errorStack::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .errorContainer {
        padding: 10px;
    }

    .errorCard {
        max-width: 100%;
    }

    .errorDetails {
        padding: 15px;
    }

    .errorStack {
        font-size: 11px;
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.errorCard {
    animation: fadeIn 0.5s ease-out;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .errorContainer {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    .errorCard {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .errorDetails {
        background-color: rgba(254, 215, 215, 0.1);
        border-color: rgba(254, 178, 178, 0.3);
    }

    .errorDetails h4 {
        color: #fc8181;
    }

    .errorStack {
        background-color: rgba(26, 32, 44, 0.8);
        color: #a0aec0;
        border-color: #4a5568;
    }
}